package app.fugema.shop.main.evaluate.model;

import com.base.common.utils.UIUtils;

import app.fugema.shop.BuildConfig;

public class ProductQuestionBean
{

    /**
     * Id : 6
     * UserId : 694
     * ProductId : 3364
     * Title : asfasdfasdfa
     * AddTime : 2021-08-03 10:18:32
     * Nick : canxi
     * Photo : null
     * ProductName : 奥王PC行李箱男女铝框20寸拉杆箱26寸密码箱旅行箱万向轮登机箱厂家直供
     * ImagePath : /Storage/Shop/12/Products/3364
     */

    private int Id;
    private int UserId;
    private int ProductId;
    private String Title;
    private String AddTime;
    private String Nick;
    private String Photo;
    private String ProductName;
    private String ImagePath;
    private UserAnswerBean answerInfo;
    private int answerNumber;

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public int getUserId() {
        return UserId;
    }

    public void setUserId(int UserId) {
        this.UserId = UserId;
    }

    public int getProductId() {
        return ProductId;
    }

    public void setProductId(int ProductId) {
        this.ProductId = ProductId;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String Title) {
        this.Title = Title;
    }

    public String getAddTime() {
        return AddTime;
    }

    public void setAddTime(String AddTime) {
        this.AddTime = AddTime;
    }

    public String getNick() {
        return Nick;
    }

    public void setNick(String Nick) {
        this.Nick = Nick;
    }

    public String getPhoto() {
        return Photo;
    }

    public String getPhotoUrl()
    {
        if(UIUtils.isNotEmpty(Photo)&&Photo.contains("http"))
        {
            return Photo;
        }
        else
        {
            return  BuildConfig.API_HOST + Photo;
        }
    }

    public void setPhoto(String Photo) {
        this.Photo = Photo;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public String getImagePath() {
        return ImagePath;
    }

    public String getImagePathUrl()
    {
        if(UIUtils.isNotEmpty(ImagePath)&&ImagePath.contains("http"))
        {
            return ImagePath;
        }
        else
        {
            return  BuildConfig.API_HOST + ImagePath;
        }
    }


    public void setImagePath(String ImagePath) {
        this.ImagePath = ImagePath;
    }

    public UserAnswerBean getAnswerInfo() {
        return answerInfo;
    }

    public void setAnswerInfo(UserAnswerBean answerInfo) {
        this.answerInfo = answerInfo;
    }

    public int getAnswerNumber() {
        return answerNumber;
    }

    public void setAnswerNumber(int answerNumber) {
        this.answerNumber = answerNumber;
    }
}
